package Java练习.面向对象综合练习.继承.练习;

public class manager extends Person{
    private double bouns;
    //空参
    public manager() {
    }
        //带参构造
    public manager(String workID, String name, double workMOney, double bouns) {
        super(workID, name, workMOney);
        this.bouns = bouns;
    }

    public double getBouns() {
        return bouns;
    }

    public void setBouns(double bouns) {
        this.bouns = bouns;
    }

    @Override
    public void work() {
        System.out.println("管理他人");
    }

}
